import request from '@/utils/request'

// 查询发薪单详情列表
export function listPayslipDetail(query) {
  return request({
    url: '/transfer/payslipDetail/list',
    method: 'get',
    params: query
  })
}

// 查询发薪单详情详细
export function getPayslipDetail(outDetailNo) {
  return request({
    url: '/transfer/payslipDetail/' + outDetailNo,
    method: 'get'
  })
}

// 新增发薪单详情
export function addPayslipDetail(data) {
  return request({
    url: '/transfer/payslipDetail',
    method: 'post',
    data: data
  })
}

// 修改发薪单详情
export function updatePayslipDetail(data) {
  return request({
    url: '/transfer/payslipDetail',
    method: 'put',
    data: data
  })
}

// 删除发薪单详情
export function delPayslipDetail(outDetailNo) {
  return request({
    url: '/transfer/payslipDetail/' + outDetailNo,
    method: 'delete'
  })
}
